<template>
  <div class="box">
    <div v-for="(item, index) in statusList" :key="index" class="itemBox">
      <div
        class="colorBox"
        :style="{ backgroundColor: item.backgroundColor }"
      ></div>
      <div>
        {{ item.status }}
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Footer',
  data() {
    return {
      statusList: [
        {
          backgroundColor: 'rgb(152, 193, 249)',
          status: '预约',
        },
        {
          backgroundColor: 'rgb(84, 146, 248)',
          status: '确认',
        },
        {
          backgroundColor: 'rgb(30, 108, 235)',
          status: '挂号',
        },
        {
          backgroundColor: 'rgb(245, 185, 35)',
          status: '治疗中',
        },
        {
          backgroundColor: 'rgb(55, 193, 206)',
          status: '完成治疗',
        },
        {
          backgroundColor: 'rgb(201, 208, 216)',
          status: '离开',
        },
      ],
    }
  },
}
</script>

<style lang="scss" scoped>
.box {
  display: flex;
  flex-wrap: nowrap;
  justify-content: end;
  float: right;
  height: 30px;
  padding: 0 20px;
  .itemBox {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    line-height: 30px;
    align-items: center;
    margin-left: 6px;
  }
  .colorBox {
    height: 10px;
    width: 10px;
    margin-right: 4px;
  }
}
</style>
